<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
<head>
    <title>成员管理</title>
    <script type="text/javascript" src="${ctx}/static/myJs/util.js"></script>
    <script type="text/javascript" src="${ctx}/static/myJs/volunteerController.js"></script>
</head>

<body>
<div class="content">
    <!--
    <div class="page-subcate-list">
        <div class="page-searchbox">
            <input id="name" type="text" placeholder="输入查询条件">

            <div class="pull-right">
                <button onclick="searchByName()">查询</button>
                <button><i class="fa fa-plus" aria-hidden="true"></i> 新建</button>
            </div>
        </div>
        <div class="page-subcate-item">
            <label>服务领域</label>
            <ul class="choices">
                <c:forEach items="${userServiceFiled}" var="skill">
                    <li><a href="javascript:void(0);" onclick="javascript:searchByServiceFiled('${skill.name}');">${skill.name}</a></li>
                </c:forEach>
            </ul>
				<span class="more">
					<a href="#">更多 <i class="fa fa-angle-down" aria-hidden="true"></i></a>
				</span>
        </div>
        <div class="page-subcate-item">
            <label>专业技能</label>
            <ul>
                <c:forEach items="${userSkill}" var="skill">
                    <li><a href="javascript:void(0);" onclick="javascript:searchBySkill('${skill.name}');">${skill.name}</a></li>
                </c:forEach>
            </ul>
				<span class="more">
					<a href="#">更多 <i class="fa fa-angle-down" aria-hidden="true"></i></a>
				</span>
        </div>
        <div class="page-subcate-item">
            <label>职业</label>
            <ul class="choices">
                <c:forEach items="${userJob}" var="skill">
                    <li><a href="javascript:void(0);" onclick="javascript:searchByJob('${skill.name}');">${skill.name}</a></li>
                </c:forEach>
            </ul>
				<span class="more">
					<a href="#">更多 <i class="fa fa-angle-down" aria-hidden="true"></i></a>
				</span>
        </div>
    </div>
    -->
    <div class="page-volunteer-recruitment-grid">
        <ul>
            <c:forEach items="${data.content}" var="item">
                <li>
                    <div class="volunteer-recruitment-card">
                        <div class="volunteer-info">
                            <a href="${ctx}/volunteer/realVerfier/${item.volunteer.memberCode}">
                                <img alt="" class="user-avatar" src="${item.volunteer.headUrl}">

                                <div class="card-title">
                                        ${item.volunteer.nickName}
                                    <i class="fa fa-trophy gold" aria-hidden="true"></i>
                                    <i class="fa fa-trophy silver" aria-hidden="true"></i>
                                    <i class="fa fa-trophy bronze" aria-hidden="true"></i>
                                </div>
                            </a>
                        </div>
                        <div class="card-body">
                            <div class="card-users"><a href="#"><i class="fa fa-heart"
                                                                   aria-hidden="true"></i>${item.volunteer.acts}次公益活动，共${item.volunteer.times}分钟公益时间</a>
                            </div>
                        </div>
                        <div class="card-footer">
                            <div class="pull-right">
                                <div class="card-edit"><a href="#"><i class="fa fa-pencil" aria-hidden="true"></i></a>
                                </div>
                                <div class="card-delete"><a href="#"><i class="fa fa-trash" aria-hidden="true"></i></a>
                                </div>
                            </div>
                        </div>
                    </div>

                </li>
            </c:forEach>
        </ul>
    </div>
    <c:if test="${data.content!= null && fn:length(data.content) > 0}">
        <tags:pagination page="${data}" paginationSize="5"/>
    </c:if>
    <c:if test="${data.content== null || fn:length(data.content) ==0 }">
        <div class="alert alert-info alert-dismissable" style="text-align: center;">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
                ×
            </button>
            暂无数据
        </div>
    </c:if>
</div>
</body>
</html>
